﻿using System.Data;
using DAL;

namespace BLL
{
    public class BllExpenditure
    {
        #region[Get-Data]
        public DataTable GetExpenditure(string keywords)
        {
            return DalExpenditure.GetExpenditure(keywords);
        }
        public DataTable GetExpenditureEdit(int id)
        {
            return DalExpenditure.GetExpenditureEdit(id);
        }
        public DataTable GetExpenditureTotal(int id, int flag)
        {
            return DalExpenditure.GetExpenditureTotal(id, flag);
        }
        public DataTable GetExpenditureReport(string keywords)
        {
            return DalExpenditure.GetExpenditureReport(keywords);
        }
        public DataTable GetExpenditureReportFillterDate(string DateBegin, string DateEnd)
        {
            return DalExpenditure.GetExpenditureReportFillterDate(DateBegin, DateEnd);
        }
        public static bool GetExpenditureCheck(EtExpenditure obj)
        {
            return DalExpenditure.GetExpenditureCheck(obj);
        }
        public static bool GetExpenditureCheckAmout(EtExpenditure obj)
        {
            return DalExpenditure.GetExpenditureCheckAmout(obj);
        }
        public DataTable GetExpenditureTotal(int Order_Buy_Id, float VoucherAmount)
        {
            return DalExpenditure.GetExpenditureTotal(Order_Buy_Id, VoucherAmount);
        }
        public DataTable GetExpenditureFillterDate(string DateBegin, string DateEnd)
        {
            return DalExpenditure.GetExpenditureFillterDate(DateBegin, DateEnd);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertExpenditure(EtExpenditure obj)
        {
            return DalExpenditure.InsertExpenditure(obj);
        }
        public static bool UpdateExpenditure(EtExpenditure obj)
        {
            return DalExpenditure.UpdateExpenditure(obj);
        }
        public static bool DeleteExpenditure(EtExpenditure obj)
        {
            return DalExpenditure.DeleteExpenditure(obj);
        }
        #endregion
    }
}